import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Index from "../components/Index";
import Hello from "../components/Hello";
import World from "../components/World";
import ShowImg from "../components/ShowImg";//导入 页面view组件
Vue.use(Router)

export default new Router({
  //配置路由
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path: '/hello',//路径的路径 url
      name: 'Hello',//路由名
      component: Hello//路由使用的组件
    }
    ,
    {
      path: '/world',//路径的路径 url
      name: 'World',//路由名
      component: World//路由使用的组件
    }
    ,
    {
      path: '/showImg',//路径的路径 url
      name: 'ShowImg',//路由名
      component: ShowImg//路由使用的组件
    }
  ]
})
